JPEXS Free Flash Decompiler Issue Tracker

If you are looking for the decompiler itself, visit https://github.com/jindrapetrik/jpexs-decompiler

NEW : We have got a new blog where we post some interesting SWF internals info.

Error: Please login first to download files from the Issue Tracker. You can register for free.
List of issuesList of issues

#2418 Initialization of static variables in script initializer not showing in decompilation
Date created:
Type: bug
Visibility: Everybody
Assigned to:
Labels: AS3HaXe
State: upgraded Help

> What steps will reproduce the problem? Open the attached swf. Open the Color script, and look for the initialization of the static variables. Clicking on the last line in the script will bring up the script initializer in the pcode source, where you can see the initialization of the variables. > What is the expected output? What do you see instead? Expected output is to see the initalization of the static variables in the decompilation. Instead, the initialization is not shown, and to see what they're initialized with, you must press the last line in the script to look at the disassembly of the script initializer. > What version of the product are you using? Is it "nightly build"? Which operating system do you have? Version 22.0.2. The initialization IS shown on version 18.5.0, and not shown on versions since 19.0.0. Im using Windows 11. > Please provide any additional information below. If the problem is related to a SWF file, attach it here, otherwise we can't help you. The attached swf is an MRE created from an swf file from Brawlhalla patch 9.03. All scripts except for the Color script were removed. The swf is mostly obfuscated. Alongside the MRE are 3 screenshots - two showing the behavior on version 22.0.2, and one showing the (correct) behavior on version 18.5.0. This issue is preventing me from updating past version 18.5.0. I hope it gets fixed.
admin
This should be fixed in nightly 3039. The original file seems to be compiled with Haxe Toolkit. Haxe compiled SWFs may contain some code which might be not fully understandable by FFDec - and thus decompilable into plain ActionScript source code. I decided to fix this specific case as it seems that this "hiding method" may be used by obfuscators.
State: new→upgraded
user
the SWF was indeed compiled with Haxe. I should've mentioned that. Seems to be fixed in the nightly version. Thanks!